package com.qs.constant;

/**
 * ClassName: CacheConstant
 * Package: com.qs.constant
 * Description:
 *
 * @Author: @weixueshi
 * @Create: 2023/11/20 - 13:15
 * @Version: v1.0
 */

/**
 * 存放redis的键
 */
public class CacheConstant {

    /**
     * 共用过期时间为25分钟
     */
    public static final Long CACHE_EXPIRE = 25L;

    /**
     * 首页轮播图键
     */
    public static final String INDEX_GOODS_IMAGE = "wx:index:image:";
    /**
     * 过期时间为20分钟
     */
    public static final Long INDEX_GOODS_IMAGE_EXPIRE = 20L;

    /**
     * 首页热卖商品键
     */
    public static final String INDEX_GOODS_HOT = "wx:index:hot:";
    /**
     * 过期时间为20分钟
     */
    public static final Long INDEX_GOODS_HOT_EXPIRE = 20L;

    /**
     * 验证码缓存键
     */
    public static final String MESSAGE_CODE = "code:";

    /**
     * 订单id号缓存键
     */
    public static final String ORDER_ID_CODE = "order:id:";
    /**
     * 订单id号过期时间为15分钟
     */
    public static final Long ORDER_ID_CODE_EXPIRE = 15L;
}
